<template>

    <el-main>
        <el-table
                :data="tableData"
                style="width: 100%">
            <el-table-column
                    prop="name"
                    label="内容"
                    width="180">
            </el-table-column>
            <el-table-column
                    prop="total"
                    label="标题"
                    width="180">
            </el-table-column>
            <el-table-column
                    prop="ctime"
                    label="创建时间">
            </el-table-column>
        </el-table>
    </el-main>
</template>

<script>
    export default {
        name: "Wen",
        data(){
            return{
                tableData:[],
                names:sessionStorage.getItem("names")
            }
        },
        created() {
            this.qian();
        },
        methods:{
            qian(){
                this.axios.get("http://localhost:9999/api/controller/wen/list",{
                    params:{
                        name:'开发',
                    }
                }).then((response) => {
                    console.log(response.data)
                    this.tableData=response.data.data.records;
                })
            },
        }
    }
</script>
